/**
 * www.easyplatform.cn ©2016
 */
package cn.easyplatform.studio.cmd.identity;

import cn.easyplatform.studio.interceptor.Command;
import cn.easyplatform.studio.interceptor.CommandContext;

/**
 * @author <a href="mailto:shiny_vc@163.com">陈云亮</a> <br/>
 * @since 2.0.0 <br/>
 */
public class LogoutCmd implements Command<Boolean> {

	private boolean normal;

	public LogoutCmd(boolean normal) {
		this.normal = normal;
	}

	@Override
	public Boolean execute(CommandContext cc) {
		cc.logout(normal);
		return true;
	}

}
